<?php
namespace app\admins\controller;
/**
 * 平台首页管理模块
 */
class Index extends Auth {
    
    
    public function index(){        
        $Menu = new \logic\sys\power\Menu($this->getUser());
        $list = $Menu->getList(['plat'=>$this->plat,'status'=>1,'depth'=>1]);
        $userInfo = $this->getUser()->getInfo();
        $this->assign(get_defined_vars());
        return $this->fetch();
    }
    
    /**
     * 首页欢迎页面
     */
    public function home(){
		echo 222;
        $this->assign(get_defined_vars());
        return $this->fetch();
    }
    
    public function demo(){
        $data = [
            'city' => "城市-0",
            'classify' =>"作家",
            'experience' => 255,
            'id' => 10000,
            'logins' => 24,
            'score' => 57,
            'sex' => "女",
            'sign' => "签名-0",
            'username' => "user-0",
            'wealth' => 82830700
        ];
        for($i = 0 ; $i<50; $i++) $list[] = $data;
        exit( json_encode(['code'=> 0, 'data'=>$list,'count'=> 50]));
    }
}
